image background full width react

146

image background full width react -

import TechnicalImage from "E:\\env\\api-blog\\src\\images\\technical.jpg"
const divStyle = {
  width: '88%',
  height: '800px',
  backgroundImage: `url(${TechnicalImage})`,
  backgroundSize: 'cover'   <---- This is important
};

Comments

Submit
0 Comments